package com.kotlin.demo

fun main() {

    val manager = manager()
    manager.setInfoValue("sldjslf")

    val infoValue = manager.getInfoValue().takeUnless { it.isNullOrBlank() } ?: "未经过任何初始化"
    println(infoValue)
}

class manager {
    private var infoValue: String? = null

    fun getInfoValue() = infoValue

    fun setInfoValue(infoValue: String) {
        this.infoValue = infoValue
    }
}

